home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
1
/
fizz23.zip
/
FIZZ23.DOC
< prev
Wrap
Text File
|
1988-02-08
|
12KB
|
321 lines
FIZZ ver2.3 copyright 1987,8 by Blue Skies, Inc., all rights reserved
PURPOSE:
FIZZ adds 'zip' to your favorite file utilities:
A. FIZZ expands "wildcards" (*,?)
B. FIZZ accepts multiple arguments
C. FIZZ understands 'NOT' (!) search specifications
D. FIZZ handles normal pathnames and multiple drive specs
E. FIZZ remembers which commands do their own wildcards
F. FIZZ takes arguments from a file or the command line
Have you ever wanted to type:
DEL *.bak *.old
OR
TYPE c:\bin\*.bat
but you couldn't because:
"del" won't accept multiple arguments, and
"type" won't expand wildcards?
NOW use FIZZ, and you CAN:
fizz DEL *.bak *.old
AND
fizz TYPE c:bin\*.bat
FIZZ works well with DOS commands (del, type, dir), batch files, compilers,
listers, editors ... any program requiring a file specification as its last
(or only) argument.
INVOCATION:
fizz [-lcbo] <command> <arg1> ... <argn> {NORMAL}
OR: fizz -f[lcbo] <command> <file_name> {ARGS FROM FILE}
OR: fizz -[dg] [<mem_file_name>] {MEM TO/FROM FILE}
OR: fizz [help] {INVOKE HELP}
-l LIST each file before executing
-c CONFIRM each file before executing (for DEL et al.)
-b 'BINDING delimiters' are 1st two chars in next arg
-o redirect output to OVERWRITE each file (for SED et al.)
-f FILE_name contains argument(s)
-d DUMP memory to ASCII file; then clear memory
-g GET memory from ASCII file; overwrite/add-to current mem
EXAMPLES:
fizz DIR a: b:
fizz -c DEL !*.c
fizz TYPE \dir1\dir2\src?.c
TUTORIAL:
Give FIZZ a try (it's easier to use than it looks). You'll be surprised
how much punch it'll give your favorite utilities.
A. Basic operation --
FIZZ should work with any program that looks for a file name as its only
(or last) argument. The DOS commands "del" and "type" qualify, as does the
DOS copy command, "copy".
These commands can now expand wildcards and accept multiple arguments,
simply by preceding the desired command with "fizz ".
To get
dir a:*.c b:*.doc
simply precede the "dir" with "fizz ", and type:
fizz dir a:*.c b:*.doc
and you will get directories of all files on drive a: with extension ".c",
PLUS all files on drive b: with extension ".doc".
With respect to wildcard expansion, FIZZ can tell your file utility to
EXCLUDE as well as include:
fizz del !*.c
would result in deleting all files EXCEPT those with ".c" extensions.
You can specify multiple excluding conditions by concatenating up to 20 of
them in a single argument:
fizz del !*.c!*.bat
would result in deleting ALL files except *.c AND *.bat.
WARNING!!
NOT specifications concatenated in a single argument have the sense of
"AND", but NOT specifications named in separate arguments have the
sense of "OR" --
fizz del !*.c !*.bat
would result in deleting ALL files except *.c; then deleting all files
except *.bat -- thereby DELETING ALL FILES!
B. Binding/Clustering --
1. In some cases, you might want to use FIZZ with a program that uses
flags of its own, as with "ls -l". Just type:
fizz "ls -l" a:*.c b:*.doc
because the two double quotes (") function as 'binding delimiters',
and will 'bind' together the command cluster (LS and its flag, -l).
FIZZ will therefore execute:
ls -l a:*.c
ls -l b:*.doc
2. FIZZ also permits argument clustering, as with:
fizz copy "file1 file2" "file3 file4" "file5 file6"
resulting in:
copy file1 file2
copy file3 file4
copy file5 file6
3. As an example of command and argument clustering:
fizz "copy file1" file2 file3 file4,
resulting in:
copy file1 file2
copy file1 file3
copy file1 file4
4. FIZZ can accommodate any ASCII characters as binding delimiters, so
if you prefer square brackets ([]) to double quotes (""), type:
fizz -b [] [ls -l] a:*.c b:*.doc
and the "-b" flag will install the next argument ([]) as binding
delimiters, giving the same result as "1.", above.
IMPORTANT NOTE!!
Wildcard expansion is inhibited within binding delimiters.
C. Memory --
When FIZZ is used with a command that can expand its own wildcards, it is
usually best to "pass along" any wildcards to that command.
FIZZ has a memory and can learn up to 200 commands, remembering whether or
not to "pass along" wildcards to each of them.
FIZZ can learn about commands in two ways:
1. Every time FIZZ is used with a command for the first time, you will
be asked if that command can expand its own wildcards.
You can specify n=no, y=yes, or <CR> = I don't know:
n=no -- FIZZ will expand wildcards itself.
FIZZ will remember your answer together with the command
name (you won't be asked about that command again).
y=yes -- FIZZ will "pass on" wildcards to the command.
FIZZ will remember your answer together with the command
name (you won't be asked about that command again).
<CR> = I don't know -- FIZZ will "pass on" wildcards to the
command.
FIZZ ignores "I don't know", so you'll be asked the question
each time the command is used, until you answer "yes" or
"no".
2. FIZZ can read a list of command names and specifications from an
ASCII file.
Each line consists of a name followed by a space and number:
dir 2
DIR 2
list 1
ls 2
where --
the name is the name of a command (case sensitive!) and
the number is a "2" (the command can expand wildcards)
or a "1" (command cannot expand wildcards).
Here's how:
a. Create an ASCII file called "fizz.mem".
b. Enter command/specification information as shown above.
c. After the file is created, invoke "fizz -g".
WHAT IF YOU MAKE A MISTAKE?
a. Invoke "fizz -d"
(answer 'n' to the 'clear memory?' question).
b. Edit the file "fizz.mem".
c. Correct the errors.
d. Invoke "fizz -g".
NOTE: Each time FIZZ learns commands, it will update any fizz.exe file
it finds in both the current directory AND in any directory(ies)
defined in your PATH.
DON'T WORRY! Fizz (2.1 and later) only updates duplicates of itself;
other versions or other files that might be named "fizz.exe" will not
be touched.
REMEMBER:
a. Case is important ("DIR" is different from "dir").
b. If there are multiple file entries for the same command
name, FIZZ will remember only the last one.